package com.mmd.sharding.persistence.domain;

import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Entity;
import javax.persistence.Id;

/**
 * @author xch
 * 2023/4/21 14:45
 */
@Entity
@Data
@NoArgsConstructor
public class TbOrder {

    @Id
    private Long orderId;

    private Long userId;

    public TbOrder(Long orderId, Long userId) {
        this.orderId = orderId;
        this.userId = userId;
    }
}
